<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
class Article extends Controller{
    //文章列表
    public function articlelist()
    {
        $nets=Db::name('article a')->join("user u","a.user_id=u.user_id")->join("brand b","a.brand_id=b.brand_id")->select();
        // dump($nets);
        // exit;
		$this->assign("nets",$nets);
        return $this->fetch();
    }
    
    // public function articlelist()
    // {
    //     $nets=Db::name('article a')->join("user u","a.user_id=u.user_id")->join("brand b","a.brand_id=b.brand_id")->select();
    //     // dump($nets);
    //     // exit;
	// 	$this->assign("nets",$nets);
    //     return $this->fetch();
    // }

     // public function articlelist()
    // {
    //     $nets=Db::name('article a')->join("user u","a.user_id=u.user_id")->join("brand b","a.brand_id=b.brand_id")->select();
    //     // dump($nets);
    //     // exit;
	// 	$this->assign("nets",$nets);
    //     return $this->fetch();
    // }
}